From: Mario Sanchez Prada Date: Mon, 26 Mar 2018 11:38:57 +0000 (+0100) Subject: st-entry: Set text-related CSS properties on the internal ClutterText X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~102 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=be76b19300;p=gnome-shell.git st-entry: Set text-related CSS properties on the internal ClutterText Call _st_set_text_from_style() when updating the entry's style, so that CSS style properties such as text-decoration or letter-spacing are applied over the internal ClutterText instance. --- diff --git a/src/st/st-entry.c b/src/st/st-entry.c index 74bdcdb65..e1a23ca29 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -308,9 +308,8 @@ st_entry_style_changed (StWidget *self) } theme_node = st_widget_get_theme_node (self); - - st_theme_node_get_foreground_color (theme_node, &color); - clutter_text_set_color (CLUTTER_TEXT (priv->entry), &color); + + _st_set_text_from_style (CLUTTER_TEXT (priv->entry), theme_node); if (st_theme_node_lookup_length (theme_node, "caret-size", TRUE, &size)) clutter_text_set_cursor_size (CLUTTER_TEXT (priv->entry), (int)(.5 + size));